<center><div style="height:35px;"><div id="message">&nbsp;</div></div></center>
<?php if($this->Session->read('message')){
	echo '<script>showMessage("addContent","'.$this->Session->read('message').'");</script>';
	$this->Session->delete('message');	
	}?>
<?php if($this->Session->read('error')){
	echo '<script>showMessage("addContent","'.$this->Session->read('error').'",1);</script>';
	$this->Session->delete('error');
}?>
	<form id="listForm" name="listForm" method="get" action="#">
    <table class="list">
      <tbody>
      <tr>
      	
      	
		<th align="center" width="15px">#</th>                      
      	
        <th align="left"><?php echo _resource('file',true)?></th>
		<th align="center" width="50px"><?php echo _resource('type',true)?></th>
        <th align="center" width="50px"><?php echo _resource('local',true)?></th>
        <th align="center" width="50px"><?php echo _resource('latest',true)?></th>
        <th align="center" width="50px"><?php echo _resource('host',true)?></th>
        
       
        
      </tr>
		<?php
			if(count($data0)>0){
			$warning=0;	
			$i=0;
			foreach($data0 as $k=>$v){
				$style="";
				if($v[2]!=$v[3]){
					$style="font-weight:bold;color:#f00;";
					$warning=1;
				}
				if(isset($v[4]) && $v[3]!=$v[4]){
					$style.="font-weight:bold;color:#000;";
				}
					
		?>
      <tr style="<?echo $style?>" class="row<?php echo fmod($i,2)+1;?>" onmouseout="this.className='row<?php echo fmod($i,2)+1;?>'" onmouseover="this.className='highlight'">
      	<td align="center"><?php echo $i+1;?>
     
        <td align="left">       
			<?php echo $v[0];?>			
        </td>
		<td align="center">       
			<?php echo $v[1];?>			
        </td>
		<td align="center">       
			<?php echo $v[2];?>			
        </td>		
		<td align="center">       
			<?php echo $v[3];?>			
        </td>  
		<td align="center">       
			<?php echo isset($v[4])?$v[4]:'-'?>				
        </td>  		
      </tr>
      <?php $i++;
			} 
			if($warning){?>
		<tr style="color:#f00">
			<td align="center" colspan=5>       
			Warning: one of your files is not latest version.
        </td>        
      </tr>
			
      <?php }
	  } ?>
      
	  
          </tbody>
      </table>
</form>
<script>
	setTimeout("removeMessage()",5000);	
</script>
<?php echo $this->element('sql_dump'); ?>